<%= stylesheet_link_tag 'bim/bcf.css' %>
<link rel="stylesheet" href="/highlighting/styles.css" />

<%= toolbar title: t('bcf.issues'), html: {class: '-with-dropdown'} do %>
  <li class="toolbar-item drop-down">

  </li>
    <li class="toolbar-item">
      <%= link_to({ action: 'upload' },
                title: I18n.t(:label_import),
                class: 'button import-bcf-button') do %>
        <%= op_icon('button--icon icon-import') %>
        <span class="button--text"><%= l(:label_import) %></span>
      <% end %>
    </li>
    <li class="toolbar-item">
      <% query = { f: ['bcfIssueAssociated', '=', ['t']] } %>
      <%= link_to(project_work_packages_with_query_path(@project, query, format: :bcf),
                title: t('bcf.bcf_xml.export'),
                class: 'button export-bcf-button') do %>
        <%= op_icon('button--icon icon-export') %>
        <span class="button--text"><%= t('bcf.bcf_xml.export') %></span>
      <% end %>
    </li>
<% end %>

<%= render partial: 'render_issues', locals: { issues: @issues } %>

<%= pagination_links_full @issues %>
